package com.java1412.common.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author java1412
 * @since 2025-05-13 15:26
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class GoodsOrder implements Serializable {
    private Integer id;
    /**
     * 订单号
     */
    private String orderNo;
    /**
     * ⽀付⾦额，单位分
     */
    private Integer totalFee;
    /**
     * 商品ID
     */
    private Integer goodsId;
    /**
     * 商品标题
     */
    private String goodsTitle;
    /**
     * 商品图⽚
     */
    private String goodsImg;
    /**
     * ⽤户id
     */
    private Integer userId;
    /**
     * 0表示未⽀付，1表示已⽀付
     */
    private Integer state;
    /**
     * 订单⽣成时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
